package xyz.xtt.exchange.service.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;

import xyz.xtt.exchange.entity.TblUser;
import xyz.xtt.exchange.mapper.TblUserMapper;
import xyz.xtt.exchange.service.AopService;

/**
 * @author huqibo
 * @date 2024/12/23
 */
public class AopServiceImpl implements AopService {
	@Autowired
	private TblUserMapper tblUserMapper;

	@Override
	public TblUser info(Long appUserId) {
		LambdaQueryChainWrapper<TblUser> lambdaQueryChainWrapper = new LambdaQueryChainWrapper<>(tblUserMapper);
		return lambdaQueryChainWrapper.eq(TblUser::getAppUserId, appUserId).one();
	}

}
